/*
package com.xzp.bams.server;

import java.util.HashMap;
import java.util.Map;

*/
/**
 * @TODO
 * @Author xu
 * 2025/4/8
 *//*

public class AccountManager {
    private static AccountManager instance;
    private Map<String, String> accounts; // 用于存储用户名和密码

    private AccountManager() {
        accounts = new HashMap<>();
        // 假设添加一些测试账户
        accounts.put("user1", "password1");
        accounts.put("user2", "password2");
    }

    public static synchronized AccountManager getInstance() {
        if (instance == null) {
            instance = new AccountManager();
        }
        return instance;
    }

    public boolean validateUser(String username, String password) {
        return accounts.containsKey(username) && accounts.get(username).equals(password);
    }
}
*/
